Adds a widget to the dashboard at the specified grid position for GridLayout or with specified bounds for DiagramLayout.
Namespace: MindFusion.Dashboards
File: DashboardCanvas.js
SyntaxJavaScript
Copy Code
|
|---|
function addWidget (widget, [column, [row, [columnSpan, [rowSpan]]]]) |
Object. The widget to add.
number | Rect. The column index for GridLayout or the bounds of the widget for DiagramLayout.
number. The row index.
number. The number of columns to span.
number. The number of rows to span.
boolean. True if the widget was added successfully; otherwise, false.
See Also